package com.nf.Ch02;

import com.nf.Ch02.dao.UserDaoImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Ch02Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Ch02Application.class, args);
        UserDaoImpl userDao = context.getBean(UserDaoImpl.class);
        userDao.demo();


    }
}
